<style>
	.text{
		text-align: right;
	}
</style>

<div class="zs-side">
	<div class="zs-menu ckxl">
		<div class="item selected">
			<div class="header">车辆使用申请</div>
			<ul class="list">
				
				<li>
					<a href="javascript:;" ng-class="{'selected':tabs['gzclsq'].tabClass['tab1']}"
					ng-click="gotoById('tab1') && setBpmTab('gzclsq','tab1')"
					>申请</a>
				</li>
				<!--科员用车申请需要-->
				<li ng-show="gzclsq.editRow.bpmkey=='clsysq'">
					<a href="javascript:;" ng-class="{'selected':tabs['gzclsq'].tabClass['tab2']}"
					ng-click="gotoById('tab2') && setBpmTab('gzclsq','tab2')"
					>部门签批</a>
				</li>
				
				<li>
					<a href="javascript:;" ng-class="{'selected':tabs['gzclsq'].tabClass['tab3']}"
					ng-click="gotoById('tab3') && setBpmTab('gzclsq','tab3')"
					>分管领导签批</a>
				</li>
				
				<!--科员和科级干部申请需要-->
				<li ng-show="gzclsq.editRow.bpmkey=='clsysq' || gzclsq.editRow.bpmkey=='clsysq_kjgb'">
					<a href="javascript:;" ng-class="{'selected':tabs['gzclsq'].tabClass['tab4']}"
					ng-click="gotoById('tab4') && setBpmTab('gzclsq','tab4')"
					>办公室调度</a>
				</li>
			</ul>
		</div>
    </div>
</div>
<div class="zs-main" >
  <!--   报件录入-s -->
    <div class="zs-content">
    	<h4 class="content-tilte" id="tab1">车辆使用申请</h4>
    	<div class="container">
    		<div id="content-djs">
    			<div class="zs-letter-table">
    				<table width="100%">
    					<tbody>
    						<tr>
                                <td class="text" width="20%"><font color="red">*</font>用车部门</td>
                                <td class="left" width="30%">
                                	<ag-Dep ng-model="gzclsq.editRow.ycbm" text-Value="gzclsq.editRow.ycbmName"  id="ycbm"
				                   	canuse="{{gzclsq.editRow.FIELD_ISNEW}}"></ag-Dep>
                                </td>
          						
          						<td class="text" width="20%"><font color="red">*</font>申请人</td>
                                <td class="left" width="30%">
                                	<ag-User ng-model="gzclsq.editRow.ssqrid" 
                                		text-Value="gzclsq.editRow.ssqr" id="ssqrid"
                                		canuse="{{gzclsq.editRow.FIELD_ISNEW}}"></ag-User>
                                </td>
                                
                                <!--<td class="text" width="20%">申请时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_dsqsj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzclsq.editRow.dsqsj" >
							   		</ag-Datebox>
                                </td>-->
                            </tr>
                            <tr>
                                <td class="text" width="20%"><font color="red">*</font>开始时间</td>
                                <td class="left" width="30%">
                                	<span ng-show="gzclsq.proauth.sysq">
                                	<ag-Datebox showcurday='gzclsq.editRow.FIELD_ISNEW'
		                        		class="zs-input" style="width:180px;height: 28px"
		                        		ng-model="gzclsq.editRow.djysj">
							   		</ag-Datebox>
							   		</span>
							   		<label ng-show="!gzclsq.proauth.sysq" ng-bind="gzclsq.editRow.djysj | asDate | date:'yyyy-MM-dd'"></label>
							   		
							   		<span ng-show="false"><input hide-novalidate="gzclsq.proauth.sysq" 
                                		alias="开始时间" required 
                                		ng-model="gzclsq.editRow.djysj"
                                		name="form_djysj"/></span>
                                </td>
                            
                                <td class="text" width="20%"><font color="red">*</font>结束时间</td>
                                <td class="left" width="30%">
                                	<span ng-show="gzclsq.proauth.sysq">
                                	<ag-Datebox   showcurday='gzclsq.editRow.FIELD_ISNEW'
		                        		class="zs-input" style="width:180px;height: 28px"
		                        		ng-model="gzclsq.editRow.dghsj" >
							   		</ag-Datebox>
							   		</span>
							   		<label ng-show="!gzclsq.proauth.sysq" ng-bind="gzclsq.editRow.dghsj | asDate | date:'yyyy-MM-dd'"></label>
							   		
							   			<span ng-show="false"><input hide-novalidate="gzclsq.proauth.sysq" 
                                		alias="结束时间" required 
                                		ng-model="gzclsq.editRow.dghsj"
                                		name="form_dghsj"/></span>
                                </td>
                            </tr>
                            
                            <tr>
                                <td class="text" width="20%"><font color="red">*</font>用车事由</td>
                                <td class="left" width="30%" colspan="3">
                                	<textarea type="text" ng-model="gzclsq.editRow.ssqyy" class="zs-input" 
                                		style="width:98%;height: 180px;" ng-show="gzclsq.proauth.sysq"></textarea>
                                	<textarea type="text" ng-model="gzclsq.editRow.ssqyy" class="zs-input" 
                                		style="width:95%;height: 180px;" readonly="true" ng-show="!gzclsq.proauth.sysq"></textarea>
                                		
                                			<span ng-show="false"><input hide-novalidate="gzclsq.proauth.sysq" 
                                		alias="用车事由" required 
                                		ng-model="gzclsq.editRow.ssqyy"
                                		name="form_ssqyy"/></span>
                                </td>
                            <tr>
                             </tr>
                            	
                           		<td class="text" width="20%"><font color="red">*</font>用车地点</td>
                                <td class="left" width="30%" colspan="3">
                                	<textarea type="text" ng-model="gzclsq.editRow.ycdd" class="zs-input" 
                                		style="width:98%;height: 180px;" ng-show="gzclsq.proauth.sysq"></textarea>
                                	<textarea type="text" ng-model="gzclsq.editRow.ycdd" class="zs-input" 
                                		style="width:95%;height: 180px;" readonly="true" ng-show="!gzclsq.proauth.sysq"></textarea>
                                		
                                		<span ng-show="false"><input hide-novalidate="gzclsq.proauth.sysq" 
                                		alias="用车地点" required 
                                		ng-model="gzclsq.editRow.ycdd"
                                		name="form_ycdd"/></span>
                                </td>
                                
                            </tr>
                            
                            <tr>
                                <td class="text" width="20%"><font color="red">*</font>用车人数</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclsq.editRow.ycrs" class="zs-input" ng-show="gzclsq.proauth.sysq"/>
                                	<label ng-show="!gzclsq.proauth.sysq" ng-bind="gzclsq.editRow.ycrs"></label>
                                </td>
                           
                           		<td class="text" width="20%">用车人员</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclsq.editRow.ycry" class="zs-input" ng-show="gzclsq.proauth.sysq"/>
                                	<label ng-show="!gzclsq.proauth.sysq" ng-bind="gzclsq.editRow.ycry"></label>
                                </td>
                                
                            </tr>
          					<tr>
                                <td class="text" width="20%"><font color="red">*</font>申请时间</td>
                                <td class="left" width="30%">
                                	<span ng-show="gzclsq.proauth.sysq">
                                	<ag-Datebox id='fi_dsqsj'  showcurday='gzclsq.proauth.sysq'
		                        		class="zs-input" style="width:180px;height: 28px"
		                        		ng-model="gzclsq.editRow.dsqsj">
							   		</ag-Datebox>
							   		</span>
							   		<label ng-show="!gzclsq.proauth.sysq" ng-bind="gzclsq.editRow.dsqsj | asDate | date:'yyyy-MM-dd'"></label>
                                </td>
                                <td colspan="2"></td>
                            </tr>
          					<!--<tr>
                                <td class="text" width="20%">申请原因</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclsq.editRow.ssqyy" class="zs-input" />
                                </td>
                           
                                <td class="text" width="20%">联系方式</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclsq.editRow.slxfs" class="zs-input" />
                                </td>
                            </tr>-->
						   
          					<!--<tr>
                                <td class="text" width="20%">是否同意申请</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclsq.editRow.itysq" class="zs-input" />
                                </td>
                          
                                <td class="text" width="20%">车辆信息(与车辆档案挂接)</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclsq.editRow.sclxx" class="zs-input" />
                                </td>
                            </tr>-->
          					<tr>
                                <td class="text" width="20%">备注</td>
                                <td class="left" width="30%" colspan="3">
                                	<!--<input type="text" ng-model="gzclsq.editRow.sbz" class="zs-input" ng-show="gzclsq.proauth.sysq"/>
                                	<label ng-show="!gzclsq.proauth.sysq" ng-bind="gzclsq.editRow.sbz"></label>-->
                                	
                                	<textarea type="text" ng-model="gzclsq.editRow.sbz" class="zs-input" 
                                		style="width:98%;height: 180px;" ng-show="gzclsq.proauth.sysq"></textarea>
                                		
                                	<textarea type="text" ng-model="gzclsq.editRow.sbz" class="zs-input" 
                                		style="width:95%;height: 180px;" readonly="true" ng-show="!gzclsq.proauth.sysq"></textarea>
                                </td>
                            </tr>
    					</tbody>
    				</table>
    			</div>
    		</div>
    	</div>
    
    	<h4 class="content-tilte" id="tab2" ng-show="gzclsq.editRow.bpmkey=='clsysq'">部门签批</h4>
    	<div class="container" ng-show="gzclsq.editRow.bpmkey=='clsysq'">
    		<div id="content-djs">
    			<div class="zs-letter-table">
    				<table width="100%">
    					<tbody>
    						<tr >
    							<td class="key" width="25%">
    								<span class="mark">部门签批意见</span>
    							</td>
    							<td width="75%" colspan="3">
									<span ng-repeat="h in gzclsq.process.usertask2.history">
										<br ng-if="$index>0"/>
										<label ng-bind="h.optcontent"></label><br/>
										签批人:<label ng-bind="h.optassigneesname"></label>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;时间:
										<label ng-bind="h.opttime | asDate | date:'yyyy-MM-dd HH时'"></label>
									</span>
									
								
									<br ng-if="gzclsq.process.usertask2.userEdit" ng-show="gzclsq.proauth.sbmspyj"/>
	    							<textarea rows="2" cols="8" type="text"  
	    								style="width:100%;height: 200px;"
	    								ng-if="gzclsq.process.usertask2.userEdit"
										ng-show="gzclsq.proauth.sbmspyj"
		    							ng-model="gzclsq.process.usertask2.editRow.optcontent"></textarea>

    							</td>
    						</tr>
    					</tbody>
    				</table>
    			</div>
    		</div>
    	</div>
    	
    	
    	
    	<h4 class="content-tilte" id="tab4" >分管领导签批</h4>
    	<div class="container" >
    		<div id="content-djs">
    			<div class="zs-letter-table">
    				<table width="100%">
    					<tbody>
    						<tr >
    							<td class="key" width="25%" >
    								<span class="mark">分管领导签批</span>
    							</td>
    							<td width="75%" colspan="3">
									<span ng-repeat="h in gzclsq.process.usertask3.history">
										<br ng-if="$index>0"/>
										<label ng-bind="h.optcontent"></label><br/>
										签批人:<label ng-bind="h.optassigneesname"></label>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;时间:
										<label ng-bind="h.opttime | asDate | date:'yyyy-MM-dd HH时'"></label>
									</span>
								
									<br ng-if="gzclsq.process.usertask3.userEdit" ng-show="gzclsq.proauth.fgldsp"/>
	    							<textarea rows="2" cols="8" type="text"  
	    								style="width:100%;height: 200px;"
	    								ng-if="gzclsq.process.usertask3.userEdit"
										ng-show="gzclsq.proauth.fgldsp"
		    							ng-model="gzclsq.process.usertask3.editRow.optcontent"></textarea>

    							</td>
    						</tr>
    					</tbody>
    				</table>
    			</div>
    		</div>
    	</div>
    	
    	<h4 class="content-tilte" id="tab3" ng-show="gzclsq.editRow.bpmkey=='clsysq' || gzclsq.editRow.bpmkey=='clsysq_kjgb'">办公室调度</h4>
    	<div class="container" ng-show="gzclsq.editRow.bpmkey=='clsysq' || gzclsq.editRow.bpmkey=='clsysq_kjgb'">
    		<div id="content-djs">
    			<div class="zs-letter-table">
    				<table width="100%">
    					<tbody>
    						
    						<tr>
    							<td width="25%" class="key">现金加油</td>
    							<td width="25%">
    								<input type="text" ng-model="gzclsq.editRow.sxjjy" class="zs-input" ng-show="gzclsq.proauth.ddsh"/>
    								<label ng-show="!gzclsq.proauth.ddsh" ng-bind="gzclsq.editRow.sxjjy"></label>
    							</td>
    							<td width="25%" class="key">卡加油</td>
    							<td width="25%">
    								<input type="text" ng-model="gzclsq.editRow.skjy" class="zs-input" ng-show="gzclsq.proauth.ddsh"/>
    								<label ng-show="!gzclsq.proauth.ddsh" ng-bind="gzclsq.editRow.skjy"></label>
    							</td>
    						</tr>
							<tr>
							    <!--<td class="text" width="20%">车牌号</td>
							    <td class="left" width="30%">
							    	<input readonly="true" type="text" ng-model="gzclsq.editRow.cph" class="zs-input" ng-show="gzclsq.proauth.sysq"/>
							    	<input type="button" name="ok" value="选择车辆" class="zs-btn c-green" 
							            ng-click="openWindow('chooseClda');" ng-show="gzclsq.proauth.sysq"/>
							        <label ng-show="!gzclsq.proauth.sysq" ng-bind="gzclsq.editRow.cph"></label>
							    </td>-->
								<td class="key" width="20%"><font color="red">*</font>驾驶员</td>
							    <td class="left" width="30%">
							    	<input type="text" ng-model="gzclsq.editRow.jsy" class="zs-input" ng-show="gzclsq.proauth.ddsh"/>
							    	<label ng-show="!gzclsq.proauth.ddsh" ng-bind="gzclsq.editRow.jsy"></label>
							    	
							    		<span ng-show="false"><input hide-novalidate="gzclsq.proauth.ddsh" 
							    		alias="驾驶员" required 
							    		ng-model="gzclsq.editRow.jsy"
							    		name="form_jsy"/></span>
							    </td>
							    
							    <td class="key" width="20%"><font color="red">*</font>联系方式</td>
							    <td class="left" width="30%">
							    	<input type="text" ng-model="gzclsq.editRow.slxfs" class="zs-input" ng-show="gzclsq.proauth.ddsh"/>
							    	<label ng-show="!gzclsq.proauth.ddsh" ng-bind="gzclsq.editRow.slxfs"></label>
							    	
							    		<span ng-show="false"><input hide-novalidate="gzclsq.proauth.ddsh" 
							    		alias="联系方式" required 
							    		ng-model="gzclsq.editRow.slxfs"
							    		name="form_slxfs"/></span>
							    </td>
							</tr>
    						<tr>
    							<td width="25%" class="key">车牌号</td>
    							<td width="25%" colspan="3">
    								<input readonly="true" type="text" ng-model="gzclsq.editRow.cph" class="zs-input" ng-show="gzclsq.proauth.ddsh"/>
                                	<input type="button" name="ok" value="选择车辆" class="zs-btn c-green" 
                                        ng-click="openWindow('chooseClda');" ng-show="gzclsq.proauth.ddsh"/>
                                    <label ng-show="!gzclsq.proauth.ddsh" ng-bind="gzclsq.editRow.cph"></label>
    							</td>
    						</tr>
    						<tr >
    							<td class="key" width="25%" >
    								<span class="mark">办公室调度意见</span>
    							</td>
    							<td width="25%" colspan="3">
									<span ng-repeat="h in gzclsq.process.usertask4.history">
										<br ng-if="$index>0"/>
										<label ng-bind="h.optcontent"></label><br/>
										签批人:<label ng-bind="h.optassigneesname"></label>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;时间:
										<label ng-bind="h.opttime | asDate | date:'yyyy-MM-dd HH时'"></label>
									</span>
									
									<br ng-if="gzclsq.process.usertask4.userEdit" ng-show="gzclsq.proauth.ddsh"/>
	    							<textarea rows="2" cols="8" type="text"  
	    								style="width:100%;height: 200px;"
	    								ng-if="gzclsq.process.usertask4.userEdit"
										ng-show="gzclsq.proauth.ddsh"
		    							ng-model="gzclsq.process.usertask4.editRow.optcontent"></textarea>

    							</td>
    						</tr>
    					</tbody>
    				</table>
    			</div>
    		</div>
    	</div>
    </div>
	<!--   报件录入-e -->
    
	<div ag-Window id="chooseClda" title="选择车辆" width='560px' height='360px'>
	    <div class="zs-form-tab ibox"
	    	data-ng-init="formInit('gzclda', {
		        keyField:'id',
		        randomFields:['id'],
		        orderObject:{id:0},
		        queryObject:{'clzt':'clzt_wsy'}
		    }) && loadData('gzclda');setConHei();">
	        <div class="zs-nice-tab idTabs">
				<div class="tool item" style="margin-left:6px;">
	            	<span class="search-warpper">
	                    <i class="icon"></i>
	                    <input type="text" class="zs-input" placeholder="车辆型号" ng-model="gzclda.queryObject['sclxh']"/>
	                </span>
	            	<span class="search-warpper">
	                    <i class="icon"></i>
	                    <input type="text" class="zs-input" placeholder="车牌号" ng-model="gzclda.queryObject['scph']"/>
	                </span>
	            </div>
	            <div class="operation item" style="margin-top:7px;">
		            	<input type="button" class="zs-btn orange" value="查询" 
		            		ng-click="loadData('gzclda')"/>
	                <!--<a class="ope-1" ng-click="loadData('gzclda')"></a>
	                <a class="ope-2"></a>-->
	            </div>
	            <div class="switch">
	                
	            </div>
	        </div>
	        <div class="date-container">
	            <div id="zpgwd">
	                <div class="zs-data-table">
	                    <div class="container">
	                        <table>
	                            <thead>
	                                <tr>
	                                	<th></th>
										<th>车辆型号</th>
										<th>座次</th>
										<th>车牌号</th>
	                                </tr>
	                            </thead>
	                            <tbody>
	                                <tr ng-repeat="r in gzclda.datas">
	                                	<td>
	                                        <input type="checkbox"
	                                            ng-click="selectRow('gzclda',r,true);"
	                                            ng-model="r.selected" />
	                                    </td>
	            						<td>
	                                        <a>
	                                            <label ng-bind="r.sclxh"></label>
	                                        </a>
	                                   </td>
	            						<td>
	                                        <a>
	                                            <label ng-bind="r.sclxxName"></label>
	                                        </a>
	                                   </td>
	            						<td>
	                                        <a>
	                                            <label ng-bind="r.scph"></label>
	                                        </a>
	                                   </td>
	                                </tr>
	                            </tbody>
	                            <tfoot>
		                            <tr>
		                                <td colspan="4">
		                                    <input type="button" class="zs-btn orange" value="选择" 
            									ng-click="chooseClda(gzclsq.editRow,gzclda.sRows[0],'chooseClda');"/>
		                                </td>
		                            </tr>
		                        </tfoot>
	                        </table>
	                    </div>
	                </div>
	                <div class="zs-pagination-box">
	                    <ag-Page fn='gzclda'></ag-Page>
	                </div>
	            </div>
	        </div>
	    </div>
	</div>
</div>